﻿@model  BankData          
<fieldset>
    <legend>账单基本信息</legend>
    @Html.DisplayForModel()
</fieldset>
@if (Model.CheckRecord != null && Model.CheckRecord.Count > 0)
{ 
    <fieldset>
        <legend>签出记录</legend>
        <table class="table">
            <thead>
                <tr>
                    <th>
                        签出人
                    </th>
                    <th>
                        签出时间
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model.CheckRecord)
            {
                <tbody>
                    <tr> 
                        <td>
                            @BindDropDownList.GetUserName(item.ApplyMan)
                        </td>
                        <td>
                            @Html.DisplayFor(m=>item.ApplyTime)
                        </td>
                    </tr>
                </tbody>
            }
        </table>
    </fieldset>
}
@if (Model.PaymentApply != null && Model.PaymentApply.Count > 0)
{ 
    <fieldset>
        <legend>认款记录</legend>
        <table class="table">
            <thead>
                <tr>
                    <th>
                        金额
                    </th>
                    <th>
                        认款人
                    </th>
                    <th>
                        状态
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model.PaymentApply)
            {
                <tbody>
                    <tr>
                        <td>
                            @Html.DisplayFor(m => item.Amount)
                        </td>
                        <td>
                            @BindDropDownList.GetUserName(item.ApplyMan)
                        </td>
                        <td>
                            @BindDropDownList.ApprovalName(item.Status)
                        </td>
                    </tr>
                </tbody>
            }
        </table>
    </fieldset>
}
@if (Model.ReleaseOrder != null && Model.ReleaseOrder.Count > 0)
{ 
    <fieldset>
        <legend>放单记录</legend>
        <table class="table">
            <thead>
                <tr>
                    <th>
                        金额
                    </th>
                    <th>
                        申请人
                    </th>
                    <th>
                        状态
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model.ReleaseOrder)
            {
                <tbody>
                    <tr>
                        <td>
                            @Html.DisplayFor(m => item.Amount)
                        </td>
                        <td>
                           @BindDropDownList.GetUserName(item.ApplyMan)
                        </td>
                        <td>
                            @BindDropDownList.ApprovalName(item.Status)
                        </td>
                    </tr>
                </tbody>
            }
        </table>
    </fieldset>    
}
@if (Model.RefundmentApply != null && Model.RefundmentApply.Count > 0)
{ 
    <fieldset>
        <legend>退款记录</legend>
        <table class="table">
            <thead>
                <tr>
                    <th>
                        金额
                    </th>
                    <th>
                        退款人
                    </th>
                    <th>
                        状态
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model.RefundmentApply)
            {
                <tbody>
                    <tr>
                        <td>
                            @Html.DisplayFor(m => item.Amount)
                        </td>
                        <td>
                            @BindDropDownList.GetUserName(item.ApplyMan)
                        </td>
                        <td>
                            @BindDropDownList.ApprovalName(item.Status)
                        </td>
                    </tr>
                </tbody>
            }
        </table>
    </fieldset>    
}

@if (Model.DisputeApply != null && Model.DisputeApply.Count > 0)
{ 
    <fieldset>
        <legend>争议记录</legend>
        <table class="table">
            <thead>
                <tr>
                    <th>
                        争议原因
                    </th>
                    <th>
                        申请人
                    </th>
                    <th>
                        状态
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model.DisputeApply)
            {
                <tbody>
                    <tr>
                        <td>
                            @Html.DisplayFor(m => item.DisputeReason)
                        </td>
                        <td>
                            @BindDropDownList.GetUserName(item.ApplyMan)
                        </td>
                        <td>
                            @BindDropDownList.ApprovalName(item.Status)
                        </td>
                    </tr>
                </tbody>
            }
        </table>
    </fieldset>    
}

